<section class="grid_4">
	<div class="block-border">
		<div class="block-content">
			<h1>Painel de Controle</h1>

			<?php 
				$dashboardPages = $this->navigation()->findAllBy( 'dashboard', true );
			    
			    $titles = array();
			    $first  = true;
			?>

			<?php foreach ( $dashboardPages as $page ): ?>
				<?php if ( !in_array( $page->dashboard['title'], $titles ) ): ?>
					
					<?php echo $first ? $first = false : '</ul>'; ?> 
					
					<h3><?php echo $page->dashboard['title']; ?></h3>
					
					<?php $titles[] = $page->dashboard['title']; ?>
					
					<ul class="shortcuts-list">
					
				<?php endif; ?>
				
					<li>
						<a href="<?php echo $page->getHref(); ?>">
						    <img src="<?php echo $this->baseUrl('/public/images/admin/icons/web-app/48/' . $page->dashboard['icon'] . '.png' ); ?>" width="48" height="48" />
						    <?php echo $page->getLabel(); ?>
						</a>
				    </li>
				
			<?php endforeach; ?>
		</div>
	</div>
</section>